﻿using System;
using System.Collections.Generic;
using Intyme.Common.DataModel;

namespace Intyme.AppLogic {
    public class ViewModel {
        public List<OrderClass> Orders { get; private set; }
        public OrderClass CurrentOrder { get; private set; } 

        public ViewModel() : this(new List<OrderClass>()) {}

        public ViewModel(List<OrderClass> orders) {
            Orders = orders;

            new InfoViewModel();
        }

        public void AddOrder(OrderClass order) {
            Orders.Add(order);
        }
    }

    public class InfoViewModel {
        public OrderClass Order { get; set; }

        public DateTime StartDate { get; set; }
        public string Name { get; set; }
        public DateTime EndDate { get; set; }
        public int Quantity { get; set; }
        public OrderPriority Priority { get; set; }

        public string Comments { get; set; }
        public string Customer { get; set; }

    }
}